package com.moorror.codegenvel.view.window.codegenxrender.view;

import com.intellij.openapi.project.Project;
import com.moorror.codegenvel.tab.MRTabWrap;
import lombok.Getter;

import javax.swing.*;

/**
 * @Author jiyanghuang
 * @Date 2025/8/24 16:52
 */
public class TabWrapTabNameTableConfigPanel extends MRTabWrap {

    @Getter
    private TabGenCodeSchema tabGenCodeSchema;

    public TabWrapTabNameTableConfigPanel(Project project, int index, String title, JTabbedPane tabbedPane, TabGenCodeSchema tabGenCodeSchema) {
        super(project, index, title, tabbedPane, tabGenCodeSchema, false);
        this.tabGenCodeSchema = tabGenCodeSchema;
    }

    @Override
    public void fetchValue() {
//        tabCodeGenSceneSQL.fetchFromPanel();
    }

    public void fillSchemaJson(String json){
        tabGenCodeSchema.fillSchemaJson(json);
    }

    public String fetchSchemaJson(){
        return tabGenCodeSchema.fetchSchemaJson();
    }
}
